package com.syaccp.request;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;


@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysUserLoginRequest",description = "登录请求实体类")
@Data
public class SysUserLoginRequest {
    @ApiModelProperty(value = "后台管理员账号", example = "userName")
    @Length(max = 32, message = "账号长度不能超过32个字符")
    private String account;

    @ApiModelProperty(value = "后台管理员密码", example = "userPassword")
    @Length(min = 6, max = 30 ,message = "密码长度在6-30个字符")
    private String pwd;

    @ApiModelProperty(value = "key", required = true)
    //@NotEmpty(message = "验证码key 不能为空")
    private String key;

    @ApiModelProperty(value = "code", required = true)
    //@NotEmpty(message = "验证码 不能为空")
    private String code;

}
